﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Purdue.Captain
{
    public partial class sitemaster : System.Web.UI.MasterPage
    {
        public class Sms
        {
            public DateTime SubmitTime { get; set; }
            public string Content { get; set; }
            public string Customer { get; set; }
        }

        protected void Page_Load(object sender, EventArgs e)
        {
            modicumCollection.DataSource = SmsCollection;
            modicumCollection.DataBind();
        }

        protected IEnumerable<Sms> SmsCollection
        {
            get
            {
                for (var i = 0; i < 4; i++)
                {
                    yield return new Sms() { SubmitTime = DateTime.Now, Content = "思念如绿叶，渐渐舒展，与月亮星星相望醉眼，想你的心化作梦呓。", Customer="赵榕" };
                }
            }
        }
    }
}